package oop4.driver;

public class PassengerPlane extends Airplane{    //客机
    int seatNumber; //座位数
    String line;    //航线
    public PassengerPlane(String brand, String line, int heightMax,int weight,int seatNumber) {
        super(brand, heightMax,weight);
        this.seatNumber=seatNumber;
        this.line=line;
    }

    @Override
    public void show() {
        System.out.println("这是一架客机，座位数:"+seatNumber+"人,航线为:"+line);
        super.show();
    }
}
